package com.own.component.common.model.entity;

import com.own.component.common.exception.BusinessSimpleException;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * IdsModel
 *
 * @author chenxueli
 * @date 2024-04-23 11:06:00
 */
@Data
public class IdsModel implements Serializable {

    @Schema(title = "ids")
    private List<Long> ids;

    public void check() {
        if (ids == null || ids.isEmpty()) {
            throw new BusinessSimpleException("ids不能为空");
        }
    }

}
